package memorandum;
//存储对象状态
public class Originator {

    private String status;
    public void setStatus(String status){
        this.status = status;
    }
    public String getStatus(){
        return status;
    }
    public Memento saveStatusToMemento(){
        return new Memento(status);
    }

    public void getMementoStatus(Memento memento){
        this.status = memento.getStatus();
    }
}
